package control;

import java.util.ArrayList;
import java.util.Scanner;

import store.TaxCalculator;

import data.*;

import model.*;

public class BRRegister extends Register {

	public BRRegister(ArrayList<Treat> treats, TaxCalculator calc) {
		super(treats, calc);
	}
	
	static String[] actions = {"Soft Serve", "Scooped", "Classic Sundae", "Signature Sundae", "Soda", "Smoothie", "Coffee Drink", "Shake", "Fruit Drink", "Quit"};
	@Override
	
	/**
	 * getTreat - gets the user's choice of treat
	 * Preconditions: None
	 * Postconditions: A concrete instance of Treat is returned
	 * @return AN initialized treat
	 */
	public Treat getTreatOrder(int treatChoice){
		switch (treatChoice){
		case 0:
			return new SoftServeIceCream();
		case 1: 
			return new ScoopedIceCream();
		case 2:
			return new ClassicSundae();
		case 3: 
			return new PremimSundae();
		case 4:
			return new Soda();
		case 5:
			return new Smoothie();
		case 6:
			return new CoffeeDrink();
		case 7:
			return new Shake();
		case 8:
			return new FruitDrink();
		}
		return new ClassicSundae();
	}
	@Override
	String[] getActions() {
		// TODO Auto-generated method stub
		return actions;
	}
	
	
}
